import { Mesh, Object3D, Scene } from "three";

export function getMeshByName(name: string, scene: Scene): Object3D{
    var allChildren = scene.children;
    return allChildren.find(child => child.name === name);
}